package com.tianyi.sfzy1.controller;

import com.tianyi.sfzy1.service.SpecializationService;
import com.tianyi.sfzy1.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/specialization")
public class SpecializationController {
    @Autowired
    private SpecializationService specializationService;

    @GetMapping
    public R selectAllSpecialization() {
        return R.ok(specializationService.selectAllSpecialization());
    }
}
